<%@ Reference Control="~/Controls/MusicTabs.ascx" %>
<%@ Page language="vb" Inherits="_2bMatesSite.view_all_content_items" CodeFile="view_all_content_items.aspx.vb" CodeFileBaseClass="_2bMatesSite.BaseWebPage" %>
<%@ Register tagprefix="MusicTabs" Tagname="MusicTabs" Src="Controls/MusicTabs.ascx" %>
<form id="Form1" method="post" runat="server">
	<table border="0" cellpadding="0" cellspacing="0" width="100%" align="center" height="100%">
		<tr>
			<td class="page_title"><asp:literal id="litPageName" runat="server"></asp:literal></td>
		</tr>	
		<tr>
			<td valign="top" width="100%" height="100%" class="main_table_border" align="center">
				<div class="content">
					<table cellspacing="0" cellpadding="0" width="100%" border="0">
						<tr id="trUserCanceledMessage" runat=server class="hidden">
							<td align=center height="20" colspan=5><asp:label id="lblErrMessageCanceled" runat=server cssclass="err_canceled_user">This member has cancelled their membership.</asp:label></td>
						</tr>
						<MusicTabs:MusicTabs id="ucMusicTabs" runat="server"></MusicTabs:MusicTabs>
						<tr>
							<td><asp:dropdownlist id="ddlQuarters" runat="server" cssclass="mail_field" width="205px" autopostback="true" onselectedindexchanged="ddlQuarters_SelectedIndexChanged"></asp:dropdownlist>&nbsp;</td>
						</tr>
						<tr>
							<td height="4" class="small">&nbsp;</td>
						</tr>
						<tr>
							<td valign="top" align="center" height="100%">
								<table cellspacing="0" cellpadding="0" width="100%" border="0" class="main_text">
									<tr id="trInterviewsList" runat=server>
										<td class="small" height="15" width="75%">
											<table cellspacing=0 cellpadding=0 border=0 class="music_table" width="100%">
												<tr>
													<td class="title" height=19><b><asp:label id="lblMusicTracks" runat=server>Music Tracks</asp:label></b></td>
												</tr>
												<tr>
													<td class="items">
														<asp:datagrid id="dgContentItems" runat="server" autogeneratecolumns="False" gridlines="None" width="100%" showheader=false>
															<itemstyle cssclass="data_grid" verticalalign="Top"></itemstyle>
															<columns>
																<asp:templatecolumn>
																	<itemstyle width=12%></itemstyle>
																	<itemtemplate>
																		<asp:hyperlink id=hlSenderImage runat="server" cssclass="small_image" navigateurl='<%# DataBinder.Eval(Container.DataItem, "URL") %>' imageurl='<%# DataBinder.Eval(Container.DataItem, "MemberImageURL") %>' onclick='<%# DataBinder.Eval(Container.DataItem, "OnClickJS") %>' ToolTip='<%# DataBinder.Eval(Container.DataItem, "MemberName") %>'>
																		</asp:hyperlink>
																	</ItemTemplate>
																</asp:TemplateColumn>
																<asp:templatecolumn>
																	<itemstyle width=88%></itemstyle>
																	<itemtemplate>
																		<b>Band: </b> <asp:hyperlink id=hlSender runat="server" navigateurl='<%# DataBinder.Eval(Container.DataItem, "URL") %>' cssclass="main_text_bold" onclick='<%# DataBinder.Eval(Container.DataItem, "OnClickJS") %>'>
																			<%# DataBinder.Eval(Container.DataItem, "MemberName") %>
																		</asp:hyperlink><br>
																		<b>Song: </b><asp:hyperlink id=hlItem runat="server" navigateurl='<%# DataBinder.Eval(Container.DataItem, "ItemURL") %>'  cssclass="main_text_bold">
																			<%# DataBinder.Eval(Container.DataItem, "ItemName") %>
																		</asp:hyperlink>
																		<pre wrap style="WORD-WRAP:break-word;margin-top:0px;margin-bottom:0px"><b>What we think: </b><asp:label id="lblItemGenre" runat="server"><%# DataBinder.Eval(Container.DataItem, "ItemGenreName") %></asp:label></pre>
																		<asp:hyperlink id="hlEditItem" runat="server" visible='<%# DataBinder.Eval(Container.DataItem, "EditItemLinkVisibility") %>' navigateurl='<%# DataBinder.Eval(Container.DataItem, "EditItemLink") %>' cssclass="main_text_bold">Edit</asp:hyperlink>
																		<asp:linkbutton id="hlDeleteItem" runat="server" visible='<%# DataBinder.Eval(Container.DataItem, "EditItemLinkVisibility") %>' commandargument='<%# DataBinder.Eval(Container.DataItem, "ItemID") %>' commandname="DeleteItem"  cssclass="main_text_bold">Delete</asp:linkbutton>
																	</ItemTemplate>
																</asp:TemplateColumn>
															</Columns>
														</asp:datagrid>																					
														<asp:label id="lblNoContentItems" runat="server" cssclass="main_text" visible="False"><br>No interviews added</asp:label>
														<asp:hyperlink id="hlAddContentItem" runat="server" cssclass="main_text_bold">Add interviews</asp:hyperlink>
													</td>
												</tr>
											</table>
										</td>
									</tr>
								</table>
							</td>
						</tr>
					</table>
				</div>
			</td>
		</tr>
	</table>
</form>
